﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000099 RID: 153
	internal class Int16Int16 : IInt16Decoder
	{
		// Token: 0x0600027E RID: 638 RVA: 0x0000B617 File Offset: 0x00009A17
		private Int16Int16()
		{
		}

		// Token: 0x0600027F RID: 639 RVA: 0x0000B61F File Offset: 0x00009A1F
		public short Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (short)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]);
		}

		// Token: 0x040000BC RID: 188
		internal static readonly IInt16Decoder Instance = new Int16Int16();
	}
}
